package com.qf.common.utils;

public class UserUtils {
    private static final ThreadLocal<Integer> threadLocal = new ThreadLocal<>();
    public static  void  setUid(Integer id){
        threadLocal.set(id);
    }
    public static  Integer  getUid(){
        return threadLocal.get();
    }

    public static  void  removeId(){
        threadLocal.remove();
    }

}
